package com.bball.court.ui;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import com.bball.court.R;

public class SuggestionActivity extends Activity {

    public static Intent newIntent(Context context) {
        Intent intent = new Intent(context, SuggestionActivity.class);
        intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
        return intent;
    }

    @Override
    protected void onCreate(Bundle arg0) {
        super.onCreate(arg0);
        setContentView(R.layout.suggestion_activity);
        NavigationUtil.goToFormFragment(this, getFragmentManager());
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent intent) {
        super.onActivityResult(requestCode, resultCode, intent);
        if (requestCode == NavigationUtil.requestLoginCode && resultCode == 200) {
            NavigationUtil.goToFormFragment(this, getFragmentManager());
        }
    }

}
